package com.atguigu.contacts;

import java.util.Arrays;
import java.util.Scanner;

public class personClass {
	public static void main(String[] args) {
		Person p = new Person();
		System.out.println(p.name);
		System.out.println(p.isMale);
		String s = "中文";
		p.talk(s);
		p.eat("苹果");
		p.sleep();
	}
}
class Person {
	String name = "张三";
	int age;
	boolean isMale = true;
	public void talk (String lang) {
		System.out.println("我可以说" + lang);
	}
	public void eat (String foot) {
		System.out.println("我可以吃" + foot);
	}
	public void sleep () {
		System.out.println("我要睡觉了");
	}
}
